﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Control_TitleBar : System.Web.UI.UserControl
{

    private string _PicUrl = "";

    private string _PageName = "";

    private string _HelpHref = "";


    protected void Page_Load(object sender, EventArgs e)
    {

    }


    public void IntiBar()
    {
        LitName.Text = " 员工姓名：" + Srvtools.CliUtils.fUserName + " ]";
        LitEid.Text = "[ 用户号：" + Srvtools.CliUtils.fLoginUser;

        Hy.NavigateUrl = HelpHref != "" ? HelpHref : "javascript:void(0)";
        ImgSRC.ImageUrl = PicUrl != "" ? PicUrl : "~/image/PageIcon/default.jpg";
        Title.Text = PageName != "" ? PageName : "瀚鹏龙（上海）自动化设备有限公司 - OA ";
        //Title.Text = "美联钢构 - ＯＡ" + PageName;
        //ImgSRC.ImageUrl = _PicUrl;
    }


    public string PicUrl
    {
        get
        {
            return _PicUrl;
        }
        set
        {
            _PicUrl = value;
        }
    }

    public string PageName
    {
        get
        {
            return _PageName;
        }
        set
        {
            _PageName = value;
        }
    }

    public string HelpHref
    {
        get
        {
            return _HelpHref;
        }
        set
        {
            _HelpHref = value;
        }
    }
}
